﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PhysicalExamination5.Model.DataMaintenance
{
    public class JiBingAddClass
    {
        [Required(ErrorMessage ="疾病名称是必填项！")]
        public string JiBingMingCheng { get; set; }
        public string JieShi { get; set; }
        public string JianYi { get; set; }
        public string ZhiDao { get; set; }
        public string ChengDu { get; set; }
        public string PYM { get; set; }
        public int ShiYongCiShu { get; set; }
        public string DuiYingBuWei { get; set; }
        [Required(ErrorMessage ="所属院区是必填项！")]
        public string SuoShuYuanQu { get; set; }
    }

    public class JiBingUpdateClass
    {
        [Required(ErrorMessage = "疾病ID是必填项！")]
        public string JiBingID { get; set; }
        [Required(ErrorMessage = "疾病名称是必填项！")]
        public string JiBingMingCheng { get; set; }
        public string JieShi { get; set; }
        public string JianYi { get; set; }
        public string ZhiDao { get; set; }
        public string ChengDu { get; set; }
        public string PYM { get; set; }
        public int ShiYongCiShu { get; set; }
        public string DuiYingBuWei { get; set; }
        [Required(ErrorMessage = "所属院区是必填项！")]
        public string SuoShuYuanQu { get; set; }
    }
    public class JiBingTongYongMingAddClass
    {
        [Required(ErrorMessage = "疾病通用名称是是必填项！")]
        public string TongYongMingMingCheng { get; set; }
    }
    public class JiBingTongYongMingUpdateClass
    {
        [Required(ErrorMessage = "疾病通用ID是是必填项！")]
        public string TongYongMingID { get; set; }
        [Required(ErrorMessage = "疾病通用名称是是必填项！")]
        public string TongYongMingMingCheng { get; set; }
    }

    public class JiBingTongYongMingDelClass
    {
        [Required(ErrorMessage = "疾病通用ID是是必填项！")]
        public string TongYongMingID { get; set; }
    }
    public class JiBingDuiYingTongYongMingAddClass
    {
        [Required(ErrorMessage = "疾病通用ID是必填项！")]
        public string TongYongMingID { get; set; }
        [Required(ErrorMessage = "疾病ID是是必填项！")]
        public string JiBingID { get; set; }
    }
    public class JiBingDelClass
    {
        [Required(ErrorMessage = "疾病ID是必填项！")]
        public string JiBingID { get; set; }
    }

    public class JiBingBaoHanGuanJianZiAddClass
    {
        [Required(ErrorMessage = "疾病ID是必填项！")]
        public string JiBingID { get; set; }
        [Required(ErrorMessage = "关键字是必填项！")]
        public string GuanJianZi { get; set; }
    }
    public class JiBingBaoHanGuanJianZiUpdateClass
    {
        public int iTid { get; set; }
        [Required(ErrorMessage = "关键字是必填项！")]
        public string GuanJianZi { get; set; }
    }

    public class JiBingBaoHanGuanJianZiDelClass
    {
        public int iTid { get; set; }
    }

    public class JiBingDuiYingTongYongMingDelClass
    {
        [Required(ErrorMessage = "疾病ID是必填项！")]
        public string JiBingID { get; set; }
        [Required(ErrorMessage = "疾病通用名ID是必填项！")]
        public string TongYongMingID { get; set; }
    }
}
